package com.itheima.servlet;

import javax.servlet.*;
import java.io.IOException;
/*
继承式写法
 */
public class ServletDemo02 extends GenericServlet {
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        //活了
        System.out.println("demo02创建了");
    }
    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("demo02干活了");
    }
}
